package com.yidu.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>@Description: 基础bean</p>
 * <p>@Author yidu-liandyao</p>
 * <p>@Date: 2021-07-30</p>
 * <p>@Time: 14:46</p>
 * <p>@version 1.0 </p>
 */
@Data
@ToString
// @AllArgsConstructor 全参数的构造方法
public class BaseBean  {
    private Integer page =1;
    private Integer limit =10;
    private Integer offset ;

    public Integer getOffset() {
        return (page-1)*limit;
    }
}
